Skip to main content
POST
/
ridership
/
accounts
[beta] Create a ridership account.
curl --request POST \
  --url https://api.samsara.com/ridership/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Springfield Public Schools",
  "externalIds": {}
}
'
{
  "data": {
    "createdAtTime": "2024-11-15T10:00:00Z",
    "id": "e4b2c3a5-7d6f-4e8b-9a0c-1b2d3e4f5a6b",
    "name": "Springfield Public Schools",
    "updatedAtTime": "2024-11-15T10:30:00Z",
    "externalIds": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the ridership account.

Example:

"Springfield Public Schools"

externalIds
object

A map of external ids

Response

OK response.

data
object
required

A ridership account entity.